package 观察着模式;

public class test {
    public static void main(String[]args){
        GuPiao gp=new GuPiao();
        GuMing g1=new GuMing("小汪");
        GuMing g2=new GuMing("小何");
        GuMing g3=new GuMing("小谷");
        gp.attach(g1);
        gp.attach(g2);
        gp.attach(g3);
        //gp.delete(g2);
        gp.setPrice(100);
    }
}
